package com.hee.erp.modules.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hee.erp.modules.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hee.erp.pojo.SysUserDetail;
import com.hee.erp.vo.SysUserLoginVo;
import com.hee.erp.vo.SysUserVo;
import com.hee.erp.vo.UserListPageParamsVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author weizehong
 * @since 2022-03-04
 */
public interface ISysUserService extends IService<SysUser> {

    SysUser login(SysUserLoginVo vo) throws Exception;

    SysUserDetail getDetailById(String id);

    void addUser(SysUserVo vo);

    Boolean checkTelExists(String userTel);

    Boolean checkUserNoExists(String userNo);

    void disableUser(String id,Integer disableFlag);

    Boolean checkIsDisabled(String id);

    void saveUserRemark(String userId, String remark);

    void saveUserDetail(SysUserDetail sysUserDetail);

    IPage<SysUser> listByPage(UserListPageParamsVo vo);

    List<String> listUserIdByLikeName(String managerOrContactor);

    void checkClockRepeat(SysUser sysUser);

    List<SysUser> getAllUserListExceptSelf();

}
